package io.renren.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.YwRewardDao;
import io.renren.entity.YwRewardEntity;
import io.renren.service.YwRewardService;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;


@Transactional(propagation= Propagation.REQUIRED)
@Service("ywRewardService")
public class YwRewardServiceImpl implements YwRewardService {
	/**
	 * 日志对象
	 */
	Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private YwRewardDao ywRewardDao;

	@Override
	public YwRewardEntity queryObject(String id){
		return ywRewardDao.queryObject(id);
	}
	
	@Override
	public List<YwRewardEntity> queryList(Map<String, Object> map){
		return ywRewardDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return ywRewardDao.queryTotal(map);
	}
	
	@Override
	public void save(YwRewardEntity ywReward){
		ywRewardDao.save(ywReward);
	}

	@Override
	public void update(YwRewardEntity ywReward){
		ywRewardDao.update(ywReward);
	}
	
	@Override
	public void delete(String id){
		ywRewardDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		ywRewardDao.deleteBatch(ids);
	}

}
